import 'dart:convert';

SubscriptionUserDetails subscriptionUserDetailsFromJson(String str) => SubscriptionUserDetails.fromJson(json.decode(str));

String subscriptionUserDetailsToJson(SubscriptionUserDetails data) => json.encode(data.toJson());

class SubscriptionUserDetails {
    SubscriptionUserDetails({
        this.braintreeCustomerId,
        this.userName,
        this.firstName,
        this.lastName,
        this.email,
    });

    String? braintreeCustomerId;
    String? userName;
    String? firstName;
    String? lastName;
    String? email;

    factory SubscriptionUserDetails.fromJson(Map<String, dynamic> json) => SubscriptionUserDetails(
        braintreeCustomerId: json["braintreeCustomerId"],
        userName: json["userName"],
        firstName: json["firstName"],
        lastName: json["lastName"],
        email: json["email"],
    );

    Map<String, dynamic> toJson() => {
        "braintreeCustomerId": braintreeCustomerId,
        "userName": userName,
        "firstName": firstName,
        "lastName": lastName,
        "email": email,
    };
}
